import http from '@/utils/http'
import router from '@/router/router'
export default {
    getUserList(context){
        return http.post('/userAccount/admin/userList',{})
            .then((res) => {
                if(res.status == 0 && res.code == "1000002"){
                    router.push('/login');
                }else{
                    context.commit('setUserList',res.data);
                }                
            })
            .catch(err => console.log(err));
    },
    
}